interface FetchNoticeDetailAPIResData {
  code: number
  msg: string
  time: string
  data: {
    id: number
    title: string
    introduce: string
    content: string
    create_time: string
    is_recommend: number
    weigh: number
  }
}

interface FetchNoticeDetailAPIParams {
  id: string
}

export function fetchNoticeDetailAPI(params: FetchNoticeDetailAPIParams, token: string) {
  return httpInstance.get<FetchNoticeDetailAPIResData, FetchNoticeDetailAPIParams>(
    '/api/notice/detail',
    { params, headers: { token } },
  )
}
